//
//  LWPicturModel.swift
//  Microblog
//
//  Created by Roman on 17/1/10.
//  Copyright © 2017年 Roman. All rights reserved.
//

import UIKit

class LWPicturModel: NSObject {

    
    var wap360: String?
    var bmiddle: String?
    //缩略图片地址，没有时不返回此字段
    var thumbnail_pic :String?{
        didSet{//http://ww1.sinaimg.cn/thumbnail/51f5d31fjw1fblqcekk83j20ku0kujvr.jpg
            //http://ww1.sinaimg.cn/wap360/51f5d31fjw1fblqcekk83j20ku0kujvr.jpg
            //这个可以实现GIF图http://ww1.sinaimg.cn/bmiddle/51f5d31fjw1fblqcekk83j20ku0kujvr.jpg
            //进行图片地址的替换
            wap360 = thumbnail_pic?.replacingOccurrences(of: "/thumbnail/", with: "/wap360/")
            
            bmiddle = thumbnail_pic?.replacingOccurrences(of: "/thumbnail/", with: "/bmiddle/")
        }
    }
}
